package barbershop.com.service;

import barbershop.com.entity.Vip;
import org.springframework.data.domain.Page;

import java.util.List;

public interface VipService {
    Vip insert(Vip record);
    Boolean delete(Vip record);
    Vip update(Vip record);
    Vip find(Vip record);
    List<Vip> getAll();

    Page<Vip> getPage(Integer page, Integer size);
    Vip findByTelNum(String telNumber);
    void updateBalance(Double newBalance, Integer vipId);

    List<Vip> findVipByNameLike(String vipName);
}
